<?php
define('FX_MERCHANTID', '');
define('FX_ID', '');
define('MERCHANTID', false);
global $_W,$_GPC;
fx_load()->func('tpl');
fx_load()->func('template');
load()->func('communication');
$_W['_config'] = $this->module['config'];
$entries = module_entries(MODULE_NAME);
$op = $_GPC['op'] = $_GPC['op'] ? $_GPC['op'] : 'display';
$controller = $_GPC['do'];
$action = $_GPC['ac'] ? $_GPC['ac'] : $_GPC['state'];
$action = $_GPC['ac'] = empty($action) ? $controller : $action;

if (empty($controller) || empty($action))
$_GPC['do'] = $controller = 'index';
$file = FX_WEB . '/controller/' . $controller . '/' . $action . '.ctrl.php';
if (!file_exists($file)) {
	header("Location: index.php?c=home&a=welcome&do=ext&m=" . MODULE_NAME);
	exit;
}

require $file;

